﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace CommonMvc.Models.Home
{
    public class HomeLogin : HomeBase
    {
        [Required]
        [StringLength(10,MinimumLength =2,ErrorMessage ="名称长度2到10位")]
        public String Name { get; set; }
        [Required]
        [MinLength(6,ErrorMessage = "密码最低6位")]
        public String PassWord { get; set; }
    }
}
